package wire

import (
	"fmt"
	"gitee.com/DonHz/basic-go/wire/repository"
	"gitee.com/DonHz/basic-go/wire/repository/dao"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

func main(){
	db, err:=gorm.Open(mysql.Open("dsn"))
	if err!=nil{
		panic(err.(any))
	}
	ud:=dao.NewUserDao(db)
	repo:=repository.NewUserRepository(ud)
	fmt.Println(repo)

}
